<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrator's Control Panel</title>
<link href="/plugin/ligerui/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="/skin/sys/css/admin.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="/plugin/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" href="/plugin/ligerui/ligerUI/skins/ligerui-icons.css" type="text/css">
<script src="/skin/comm/js/jquery.js" type="text/javascript"></script>
<script src="/skin/comm/js/insertAtCursor.js" type="text/javascript"></script>
<script src="/plugin/ligerui/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<script src="/skin/sys/js/JP.js" type="text/javascript"></script>
<script src="/skin/sys/js/com.js" type="text/javascript"></script>
<script src="/skin/sys/js/portal.js" type="text/javascript"></script>
<script src="/skin/sys/js/insertArt.js" type="text/javascript"></script>
<script src="/plugin/ztree/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>
<script src="/plugin/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="/plugin/artdialog/jquery.artDialog.source.js?skin=chrome"></script><script charset="utf-8" src="/plugin/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/plugin/kindeditor/lang/zh_CN.js"></script>
<script language="javascript">
var setting = {async : {enable : true,url : "../doc/v_addtree.do?modelId=3&cid=2",autoParam : ["parentId"]},
		check: {enable: false}
};
var dirsetting = {
		async : {enable : true,url : "../tpl/v_tpl_dirtree.do",autoParam : ["path"],type:"get"},
		check: {enable: false}
};
var depsetting = {async : {enable : true,url : "../depart/v_addtree.do",autoParam : ["parentId"]},
		check: {enable: false}
};
var editor;
KindEditor.options.formatUploadUrl = false;
KindEditor.ready(function(K) {
    editor = K.create('#txt',{cssPath :'../plugins/code/prettify.css',uploadJson : '../kind/o_upload_file.do',allowFileManager : true,newlineTag:'p',filterMode:false});
});
$(function (){
	$("#docForm").validate({
		errorPlacement : function(lable, element) {
			$(element).ligerHideTip();
            $(element).ligerTip({content:lable.html()});
		},
		success : function(lable,element) {
			$(element).ligerHideTip();
		}
	});
	
	$.fn.zTree.init($("#channelTree"), setting);
	$.fn.zTree.init($("#dirList"), dirsetting);
	$.fn.zTree.init($("#departTree"), depsetting);
	$("#titleColor").colorPicker();
	
});

function setDepart(name,id) {
	$("#menuContent1").fadeOut("fast");
	$("#selectdepartId").val(name);
	$("#departId").val(id);
}
</script>
</head>
<body>
<script src="/plugin/swfupload/swfupload.js" type="text/javascript"></script>
<script src="/plugin/swfupload/swfupload.queue.js" type="text/javascript"></script>
<script src="/plugin/swfupload/fileprogress.js" type="text/javascript"></script>
<script src="/plugin/swfupload/handlers.js" type="text/javascript"></script>
<script src="/plugin/swfupload/jquery.progressbar.min.js" type="text/javascript"></script>
<script src="/skin/comm/js/autoZoomLoadImage.js" type="text/javascript"></script>
<link href="/plugin/swfupload/process.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
var swfu;
var swfu1;
var swfu2;
var d;
window.onload=function() {
	var uploadUrl = "../o_upload_img.do";
	var uploadUrl1 = "../o_upload_attach.do";
	swfu=new SWFUpload({
		upload_url : uploadUrl,
		flash_url : "/plugin/swfupload/swfupload.swf",
		file_size_limit : "10 MB",
		file_types : "*.jpg;*.gif;*.png;*.bmp",
		file_post_name:"imgFile",
		file_types_description : "图片",
		file_queue_limit : 0,
		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},
		debug: false,
		
		button_image_url : "/plugin/swfupload/swfbtn.png",
		button_placeholder_id : "spanButtonPlaceHolder",
		button_text: "<span class='abtn'>上传图片</span>",
		button_window_mode:"transparent",
		button_width: 80,
		button_height: 24,
		button_text_left_padding: 22,
		button_text_top_padding: 2,
		
		file_queued_handler : fileQueued2,
		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,
		upload_start_handler : uploadStart2,
		upload_progress_handler : uploadProgress2,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess2,
		upload_complete_handler : uploadComplete2,
		queue_complete_handler : queueComplete2
	});
	swfu1=new SWFUpload({
		upload_url : uploadUrl1,
		flash_url : "/plugin/swfupload/swfupload.swf",
		file_size_limit : "100 MB",
		file_types : "*.doc;*.rar;*.zip;*.xls;*.jpg;*.docx;*.pdf",
		file_post_name:"attachFile",
		file_types_description : "附件",
		file_queue_limit : 0,
		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},
		debug: false,
		
		button_image_url : "/plugin/swfupload/swfbtn.png",
		button_placeholder_id : "spanButtonPlaceHolder1",
		button_text: "<span class='abtn'>上传附件</span>",
		button_window_mode:"transparent",
		button_width: 80,
		button_height: 24,
		button_text_left_padding: 22,
		button_text_top_padding: 2,
		
		file_queued_handler : fileQueued1,
		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,
		upload_start_handler : uploadStart1,
		upload_progress_handler : uploadProgress1,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess1,
		upload_complete_handler : uploadComplete1,
		queue_complete_handler : queueComplete2
	});
	swfu2=new SWFUpload({
		upload_url : uploadUrl,
		flash_url : "/plugin/swfupload/swfupload.swf",
		file_size_limit : "10 MB",
		file_types : "*.jpg;*.gif;*.png;*.bmp",
		file_post_name:"imgFile",
		file_types_description : "图片",
		file_queue_limit : 0,
		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},
		debug: false,
		
		button_image_url : "/plugin/swfupload/swfbtn.png",
		button_placeholder_id : "spanButtonPlaceHolder2",
		button_text: "<span class='abtn'>上传图片</span>",
		button_window_mode:"transparent",
		button_width: 80,
		button_height: 24,
		button_text_left_padding: 22,
		button_text_top_padding: 2,
		
		file_queued_handler : fileQueued2,
		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,
		upload_start_handler : uploadStart3,
		upload_progress_handler : uploadProgress3,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess3,
		upload_complete_handler : uploadComplete2,
		queue_complete_handler : queueComplete2
	});
};
var imgIndex = 0;
var imgIndex1 = 0;
var attIndex = 0;

function fileQueued2(file) {
	
}
function uploadStart2(file) {
	$("#imgshow").append($.format($("#imgList").html(),imgIndex++));
}
function uploadProgress2(file, bytesLoaded, bytesTotal) {
	var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
	var index = imgIndex - 1;
	var p = "width:"+percent+"%;";
	$("#imgpercent"+index).attr("style",p);
	$("#imgpercent"+index).html(percent+"%");
}
function uploadComplete2(file) {
	
}
function queueComplete2(file) {
	
}
function uploadSuccess2(file,serverData) {
	var index = imgIndex - 1;
	$("#img"+index).attr("src",""+serverData);
	$("#img"+index).autoZoomLoadImage(150, 150);
	$("#imgpath"+index).val(serverData);
	$("#imgdel"+index).bind("click",function(){
		$.get("o_delete_file.do",{"path":$("#img"+index).attr("src")});
		$("#imgList"+index).remove();
	});
	$("#imgprocess"+index).remove();
}

function uploadStart3(file) {
	$("#aimgshow").append($.format($("#aimgList").html(),imgIndex1++));
}

function uploadProgress3(file, bytesLoaded, bytesTotal) {
	var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
	var index = imgIndex1 - 1;
	var p = "width:"+percent+"%;";
	$("#aimgpercent"+index).attr("style",p);
	$("#aimgpercent"+index).html(percent+"%");
}

function uploadSuccess3(file,serverData) {
	var index = imgIndex1 - 1;
	if(index==0){
		$("#typevalue0").val(",0,");
		$("#seltype00").attr("checked",true);
	}
	$("#aimg"+index).attr("src",""+serverData);
	$("#aimg"+index).autoZoomLoadImage(150, 150);
	$("#aimgpath"+index).val(serverData);
	$("#aimgdel"+index).bind("click",function(){
		$.get("o_delete_file.do",{"path":$("#aimg"+index).attr("src")});
		$("#aimgList"+index).remove();
	});
	$("#aimgprocess"+index).remove();
}


function fileQueued1(file) {
	
}
function uploadStart1(file) {
	$("#attshow").append($.format($("#attList").html(),attIndex++));
	var index = attIndex - 1;
	var size = (file.size/1024).toFixed(2);
	$("#attname"+index).html(file.name+"("+size+"KB)");
}
function uploadProgress1(file, bytesLoaded, bytesTotal) {
	var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
	var index = attIndex - 1;
	$("#attpb"+index).progressBar(percent,{ barImage: '/plugin/swfupload/progressbg_green.gif'});
}
function uploadComplete1(file) {
	
}
function uploadSuccess1(file,serverData) {
	var index = attIndex - 1;
	$("#atturl"+index).val(serverData);
	$("#attachname"+index).val(file.name);
	$("#attdel"+index).bind("click",function(){
		$.get("o_delete_file.do",{"path":$("#atturl"+index).val()});
		$("#att"+index).remove();
	});
}


function delimg(index){
	$("#imgList"+index).remove();
}
function delimg1(index){
	$("#aimgList"+index).remove();
}
function delatt(index){
	$("#att"+index).remove();
}
</script><div class="blk c">
	<h2>文档/添加</h2>
	<div class="c">
    	<form method="post" action="o_save.do" id="docForm">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="pmsTable">
            <tr>
              <td class="ftit"><span>*</span>所属栏目:</td>
              <td colspan="3">
				<ul class="items">
					<li class="t2">
					<ul class="pms-comboBox">
						<li><input type="text" name="selectchannelId" id="selectchannelId" onclick="showMenu('selectchannelId','menuContent')" readonly="readonly" value="体育" vld="{required:true,checkchannel:true,messages:{required:'栏目不能为空!',checkchannel:'请选择末级栏目添加信息!'}}"/></li>
					    <li class="pms-trigger" onclick="showMenu('selectchannelId','menuContent')"><div class="pms-trigger-icon"></div></li>
					</ul>
					<input type="hidden" name="channelId" id="channelId" value="2"/>
					<input type="hidden" name="childsize" id="childsize" value="5"/>
					<div id="menuContent" class="menuContent" style="display:none; width:180px; position:absolute; background:#fff; border:1px solid #ccc;">
						<ul id="channelTree" class="ztree" style="height:180px;width:170px;overflow-y:scroll;"></ul>
					</div>
		            <li>
		            <li><a href="javascript:void(0);" class="abtn"><img src="/skin/sys/img/admin/fchnl.gif"/> <b>关联栏目</b></a></li>
		            <li><a href="javascript:void(0);" class="abtn" onclick="purgroup()"><img src="/skin/sys/img/admin/authority.gif"/> <b>浏览权限</b></a>
		            <span id="groupIds"></span>
		            </li>
		            <!-- 
		            <li class="t">
		                                       签收部门:
		            </li>
		            <li><ul class="pms-comboBox"><li><input type="text" name="selectdepartId" onclick="showMenu('selectdepartId','menuContent1')" id="selectdepartId" readonly="readonly"/></li>
			        <li class="pms-trigger" onclick="showMenu('selectdepartId','menuContent1')"><div class="pms-trigger-icon"></div></li></ul>
		            <input type="hidden" name="departId" id="departId"/>
					<div id="menuContent1" class="menuContent" style="display:none; width:280px; position:absolute; background:#fff; border:1px solid #ccc;">
						<ul id="departTree" class="ztree" style="height:220px;width:270px;overflow-y:scroll;"></ul>
					</div>
					</li>
					 -->
		         </ul>
              </td>
            </tr>
            <tr>
              <td class="ftit"><span>*</span>标题：</td>
              <td colspan="3">
				<ul class="items">
					<li class="t2"><input id="title" name="title" type="text" size="60" maxlength="127" onchange="titleTag()" vld="{required:true,messages:{required:'标题不能为空!'}}"/><li>
		            <li class="t"><input onclick="$('.linkLi').toggle(this.checked);if(!this.checked){$('#link').val('');}" type="checkbox"/>外部链接</li>
		            <li class="linkLi" style="display:none;">URL:</li>
		            <li class="linkLi" style="display:none;"><input id="link" name="link" type="text" size="35" maxlength="100"/></li>
		         </ul>
              </td>
            </tr>
            <tr>
              <td class="ftit">摘要：</td>
              <td colspan="3">
				<textarea style="width:600px;height:80px;" name="description" class="l-textarea" vld="{maxlength:255,messages:{maxlength:$.format('内容过长，摘要长度不能超过{0}!')}}"></textarea>
              </td>
            </tr>
            <tr>
              <td class="ftit">来源：</td>
              <td >
				<ul class="items">
					<li class="t2"><input name="origin" type="text" size="20" maxlength="50" /><li>
		            <li class="t2">来源链接:</li>
		            <li class="t2"><input name="originUrl" type="text" size="20" maxlength="150"/></li>
		         </ul>
              </td>
              <td class="ftit">作者：</td>
              <td ><input name="author" type="text" size="20" maxlength="50" /></td>
            </tr>
            <tr>
              <td class="ftit">新闻类型：</td>
              <td >
				<ul class="items">
				    <li class="t2"><input type="checkbox" name="style" value="1" id="type1" onclick="checktype(1);" checked="checked"/>普通</li>&nbsp;<li class="t2"><input type="checkbox" name="style" value="2" id="type2" onclick="checktype(2);" />图文</li>&nbsp;<li class="t2"><input type="checkbox" name="style" value="3" id="type3" onclick="checktype(3);" />焦点</li>&nbsp;<li class="t2"><input type="checkbox" name="style" value="4" id="type4" onclick="checktype(4);" />头条</li>&nbsp;
		         </ul>
              </td>
              <td class="ftit">属性：</td>
              <td >
				<ul class="items">
		            <li class="t2"><input type="checkbox" onclick="$('#recommend').val(this.checked)"/>推荐<input type="hidden" id="recommend" name="recommend" value="false"/></li>
		            <li class="t2"><input type="checkbox" onclick="$('#top').val(this.checked)"/>置顶<input type="hidden" id="top" name="top" value="false"/></li>
		         </ul>
              </td>
            </tr>
            <tr>
              <td class="ftit">缩略图：</td>
              <td colspan="3" id="aimgshow">
			  	<span id="spanButtonPlaceHolder2"></span><br/>
              </td>
            </tr>
            <tr>
              <td class="ftit">组图：</td>
              <td colspan="3" id="imgshow">
				<span id="spanButtonPlaceHolder"></span>
				<span></span>
              </td>
            </tr>
            <tr>
              <td class="ftit">内容模板：</td>
              <td >
			  	<ul class="items">
					<li class="t2">
					<input name="tplContent" id="tplContent" type="text" readonly="readonly"/>
					<input id="tplContent_url" type="hidden"/>
					</li>
					<li><a href="javascript:void(0);" onclick="showTpl('Content')" class="abtn"><img src="/skin/sys/img/admin/search.gif"/> <b>浏览</b></a></li>
					<li><a href="javascript:void(0);" onclick="editTpl('Content')" class="abtn"><img src="/skin/sys/img/admin/edit.gif"/> <b>编辑</b></a></li>
				</ul>
              </td>
              <td class="ftit">发布时间：</td>
              <td >
				<ul class="items">
					<li class="t2"><input name="releaseDate" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/><li>
		            <li>留空则为当前时间</li>
		         </ul>
              </td>
            </tr>
            <tr>
              <td colspan="4" class="fctrl">
                <input type="hidden" name="modelId" value="3"/>
              </td>
            </tr>
        </table>
        </form>
	</div>
<script language="javascript">
var dig;

var ld;

function showTpl(idstr){
    $("#tplid").val(idstr);
    dig = $.ligerDialog.open({
    	title:"选择模板",
    	width:650,
    	target: $("#target")
    });
}

function editTpl(idstr){
    var tpl = $("#tpl"+idstr+"_url").val();
    if(tpl!=null&&tpl.length>0){
        top.f_addTab("modifyTpl", '修改模板', 'tpl/v_edit.do?name=' + tpl);
    }
}

function checkTpl(tpl,tplurl){
	var id = "tpl" + $("#tplid").val();
	dig.hidden();
	$("#"+id).val(tpl);
	$("#"+id+"_url").val(tplurl);
}

function setChannel(name,id) {
	$("#menuContent").fadeOut("fast");
	$("#selectchannelId").val(name);
	$("#channelId").val(id);
	$("#childsize").val(0);
	$("#selectchannelId").focus();
}

function titleTag() {
	$.post("v_titletags.do", {
		"title" : $("#title").val()
	}, function(data) {
		if(data.success) {
			$("#tagStr").val(data.tag);
		}
	}, "json");
}

function loadTpl(path){
	var filesetting = {
			async : {enable : true,url : "../tpl/v_tpl_filetree.do?path="+path,type:"get"},
			check: {enable: false}
	};
	$.fn.zTree.init($("#tplList"), filesetting);
}

function checktype(typeid){
	if($("#type"+typeid).attr("checked")){
		$("li[id^='typeshow"+typeid+"']").show();
	}else{
		$("li[id^='typeshow"+typeid+"']").hide();
	}
}

function selecttype(checkbox,typeid){
	var m = "seltype"+typeid;
	var s = ","+$(checkbox).val()+",";
	var l = s.length;
	var str = checkbox.id.substring(m.length);
	if($(checkbox).attr("checked")){
		$("input[id^='seltype"+typeid+"']").attr("checked",false);
		$("input[id^='typevalue']").each(function(i){
			var i = $(this).val().indexOf(s);
			if(i>-1){
			    $(this).val($(this).val().substring(0,i+1)+$(this).val().substring(i+l));
			}
		});
		$(checkbox).attr("checked",true);
		$("#typevalue"+str).val($("#typevalue"+str).val()+$(checkbox).val()+",");
	}else{
		var i = $("#typevalue"+str).val().indexOf(s);
		$("#typevalue"+str).val($("#typevalue"+str).val().substring(0,i+1)+$("#typevalue"+str).val().substring(i+l));
	}
}

function selectfengmian(checkbox,typeid){
	var m = "selfengm"+typeid;
	var s = ","+$(checkbox).val()+",";
	var l = s.length;
	var str = checkbox.id.substring(m.length);
	if($(checkbox).attr("checked")){
		$("input[id^='selfengm"+typeid+"']").attr("checked",false);
		$("input[id^='itypevalue']").each(function(i){
			var i = $(this).val().indexOf(s);
			if(i>-1){
			    $(this).val($(this).val().substring(0,i+1)+$(this).val().substring(i+l));
			}
		});
		$(checkbox).attr("checked",true);
		$("#itypevalue"+str).val($("#itypevalue"+str).val()+$(checkbox).val()+",");
	}else{
		var i = $("#itypevalue"+str).val().indexOf(s);
		$("#itypevalue"+str).val($("#itypevalue"+str).val().substring(0,i+1)+$("#itypevalue"+str).val().substring(i+l));
	}
}

function purgroup(){
	dig = $.ligerDialog.open({
    	title:"浏览权限",
    	width:450,
    	height:150,
    	target: $("#groups")
    });
}

function setGroups(){
	var s = "";
	$("input[name='groupIds']:checked").each(function(i){
		s = s + "<input type='hidden' name='viewGroupIds' value='"+$(this).val()+"'/>";
	});
	$("#groupIds").html(s);
	dig.hidden();
}

function changeprev(index){
	var txt = $("#imgList"+index).clone();
	var prev = $("#imgList"+index).prev();
	if(prev.attr("id")){
		$("#imgList"+index).remove();
		prev.before(txt);
	}
}

function changenext(index){
	var txt = $("#imgList"+index).clone();
	var next = $("#imgList"+index).next();
	if(next.attr("id")){
		$("#imgList"+index).remove();
		next.after(txt);
	}
}

function imgcut(i){
	$.get("../v_cut_img.do",{"path":$("#aimgpath"+i).val(),"i":i},function(data){
		ld = $.dialog({title:'裁剪图片:',content:data,padding:"0px 0px"});
	},"html");
}

$.validator.addMethod("checkchannel", function(value, element, params) {
	if (value != "") {
		if($("#childsize").val()!=0){
			return false;
		}
		return true;
	}
}, "请选择末级栏目添加文档!");
</script>
    <ul id="attList" style="display:none">
	   <li id="att{0}"><span id="attname{0}"></span>
		   <a href="javascript:void(0);" id="attdel{0}" onclick="swfu1.cancelQueue();" title="删除">
		   <img src="/skin/sys/img/admin/del.gif"/></a>
		   <span class="progressBar" id="attpb{0}"></span>
		   <input type="hidden" name="attNames" id="attachname{0}"/>
		   <input type="hidden" name="attPaths" id="atturl{0}"/>
	   </li>
	</ul>
	
	<div id="imgList" style="display:none">
    <dl id="imgList{0}" class="atlas">
		<dt>
		<div class="ver_pic">
		<div class="subpic"><img id="img{0}" src="/skin/sys/img/admin/uploading.gif"/></div>
		<div class="process" id="imgprocess{0}"><div class="percent" id="imgpercent{0}" style="width:0%;"></div></div>
		</div>
		<input type="hidden" name="imgPaths" id="imgpath{0}"/></dt>
		<dd class="ctrl">
			<a href="javascript:void(0);" id="imgprev{0}" onclick="changeprev({0})" title="排前"><img src="/skin/sys/img/admin/front.gif"/></a>
			<a href="javascript:void(0);" id="imgnext{0}" onclick="changenext({0})" title="排后"><img src="/skin/sys/img/admin/back.gif"/></a>
			<a href="javascript:void(0);" id="imgdel{0}" onclick="swfu.cancelQueue();" title="删除"><img src="/skin/sys/img/admin/del.gif"/></a>
		</dd>
		<dd class="prop">
		    <input type="hidden" name="imgStyles" value="," id="itypevalue{0}"/>
		    <input type="hidden" name="thumbs" value="0"/>
		    <ul class="items">
			   <li class="t2"><input type="checkbox" value="1" id="selfengm0{0}" onclick="selectfengmian(this,0);"/>封面</li>
	        </ul>
		</dd>
		<dd class="desc"><textarea name="imgDescs" id="desc{0}" maxlength="255" class="l-textarea" style="width:380px; height:120px;"></textarea></dd>
	</dl>
    </div>
    <div id="aimgList" style="display:none">
	    <dl id="aimgList{0}" class="thumbnail">
			<dt><div class="ver_pic"><div class="subpic"><img id="aimg{0}" src="/skin/sys/img/admin/uploading.gif"/></div>
			<div class="process" id="aimgprocess{0}"><div class="percent" id="aimgpercent{0}" style="width:0%;"></div></div>
			</div><input type="hidden" name="imgPaths" id="aimgpath{0}"/></dt>
			<dd class="ctrl">
				<a href="javascript:void(0);" title="修改"><img src="/skin/sys/img/admin/update.gif"/></a>
				<a href="javascript:void(0);" id="aimgcut{0}" onclick="imgcut({0})" title="裁剪"><img src="/skin/sys/img/admin/cut.gif"/></a>
				<a href="javascript:void(0);" id="aimgdel{0}" onclick="swfu2.cancelQueue();" title="删除"><img src="/skin/sys/img/admin/del.gif"/></a>
			</dd>
			<dd class="prop">
			    <input type="hidden" name="imgStyles" value="," id="typevalue{0}"/>
			    <input type="hidden" name="thumbs" value="1"/>
			    <ul class="items">
			       <li class="t2" id="typeshow0{0}">
				   <input type="checkbox" id="seltype0{0}" value="0" onclick="selecttype(this,0);"/>标题图</li>
				   <li class="t2" id="typeshow2{0}" style="display:none">
				   <input type="checkbox" id="seltype2{0}" value="2" onclick="selecttype(this,2);"/>图文</li>
				   <li class="t2" id="typeshow3{0}" style="display:none">
				   <input type="checkbox" id="seltype3{0}" value="3" onclick="selecttype(this,3);"/>焦点</li>
		        </ul>
			</dd>
			<dd class="desc" style="display:none"><textarea name="imgDescs" id="adesc{0}" maxlength="255" class="l-textarea" style="width:380px; height:60px;"></textarea></dd>
		</dl>
    </div>
    <span style="display:none">
      
      <span id="spanButtonPlaceHolder1"></span>
      
    </span>
    <span style="display:none"><input id="btnCancel" type="button" value="取消" onclick="swfu.cancelQueue();" disabled="disabled" /></span>
	
	<div id="target" style="margin:3px; display:none;">
	    <div style="width: 300px; height: 400px; margin: 10px; margin-right: 1px; float: left;
            border: 1px solid #ccc; overflow: auto;">
            <ul id="dirList" class="ztree">
            </ul>
        </div>
        <div style="width: 300px; height: 400px; margin: 10px; margin-left: 1px; float: left;
            border: 1px solid #ccc; overflow: auto;">
            <ul id="tplList" class="ztree">
            </ul>
        </div>
        <input type="hidden" id="tplid" />
	</div>
	
	<div id="groups" style="display:none">
	<input type="checkbox" name="groupIds" value="1" />普通会员
	<input type="checkbox" name="groupIds" value="3" />青铜会员
	<input type="checkbox" name="groupIds" value="2" />白金会员
	<input type="button" value="确定" onclick="setGroups()"/>
	</div></div>
</body>
</html>